<!-- 引入头文件 -->
<if condition="session('en')">
  <include file="Common/en_head" />
<else />
  <include file="Common/head" />
</if>

<script type="text/javascript">
    // 传递页码
    function page(pageNo,pageSize){

      if(pageNo)

        $("input[name='pageNo']").val(pageNo);

      if(pageSize)

        $("input[name='pageSize']").val(pageSize);

      $("#searchForm").submit();

    }
</script>

<div class="Content">
<!-- 类目 -->
	<if condition="session('en')">
    <include file="Common/en_cate" />
  <else />
    <include file="Common/cate" />
  </if>


	<div class="ContentRight">
		<!-- 面包屑 -->
    	 <if condition="session('en')">
        <div class="Links"><h2>Product Center</h2><a href="{:U('Index/en_index')}">Home</a> > <a href="{:U('Products/productsAll')}">Product Show</a></div>
      <else />
        <div class="Links"><h2>产品中心</h2><a href="{:U('Index/index')}">首页</a> > <a href="{:U('Products/productsAll')}">产品展示</a></div>
      </if>
        <div class="Productslist">
       


        <ul>
        	<!-- 产品循环展示 -->
        	<?php $i=1; ?>
            <foreach name='getProductList' item='v'>

  
                <li <?php $i++; if($i%4==0) echo "class='r'"; ?> >
                    <a href="{:U('Products/view',array('id'=>$v['id']))}">
                      <img src="{$v.product_img}" />{$v.name}
                    </a>
                </li>
            </foreach>
			
 		</ul>

        </div>

        

    </div>
    <!-- 引入分页功能 -->
    <form id="searchForm" method="post" action="">
        <!-- 传递页码的标签 -->
         <input type="hidden" name="pageNo" value="{$pageNo}"/>
         <input type="hidden" name="pageSize" value="{$pageSize}"/>
         <include file="Common/page" />
    </form>
    <!-- 分页结束 -->
	<div class="clr"></div>

</div>

<include file="Common/bottom" />
</body>
</html>